import request from '@/utils/request'

export function getDeviceList(param) {
  return request({
    url: 'rest/device/list',
    method: 'post',
    data: param
  })
}

export function deleteDevice(param) {
  return request({
    url: 'rest/device/delete',
    method: 'post',
    data: param
  })
}

export function saveDevice(param) {
  return request({
    url: 'rest/device/save',
    method: 'post',
    data: param
  })
}

// 获取测点实时数据
export function channelData(param) {
  return request({
    url: 'rest/data/channelData',
    method: 'post',
    data: param
  })
}
